<?php
session_start();
include_once 'logging.inc.php';
echo is_logged()? '{"result":true, "name":"'.$_SESSION['username'].'"}'
                : '{"result":false}';
?>

